AUTOMAKE_OPTIONS = nostdinc
AM_CPPFLAGS = \
	-I$(top_builddir)/include \
	-I$(top_srcdir)/include \
	-I$(includedir)

lib_LTLIBRARIES = libxpnet.la
libxpnet_la_SOURCES = \
	arp.c \
	dns.c \
	ether.c \
	inet.c \
	netdb.c \
	resolv.c \
	route.c \
	sck.c \
	serial.c \
	socket.c \
	sttp.c \
	tcp.c 

libxpnet_la_LDFLAGS = -version-info 1:0:0 -L$(libdir)

if ENABLE_CXX
lib_LTLIBRARIES += libxpnet++.la

libxpnet___la_SOURCES = \
	EtherAddress.cpp \
	InetAddress.cpp \
	InetSocket.cpp \
	Lttp.cpp \
	NetLink.cpp \
	NetLinkRoute.cpp \
	PacketSocket.cpp \
	ProtoBase.cpp \
	Socket.cpp \
	SttpBase.cpp \
	Sttp.cpp \
	Tcp4Address.cpp \
	Tcp6Address.cpp \
	TcpAddress.cpp \
	TcpServer.cpp \
	TcpSocket.cpp \
	Udp4Address.cpp \
	Udp6Address.cpp \
	UdpAddress.cpp \
	UdpSocket.cpp

libxpnet___la_LDFLAGS = -version-info 1:0:0 -L$(libdir)
endif

